package com.yanqu.road.entity.activity.daomu.data;

import com.yanqu.road.entity.DataObject;
import com.yanqu.road.entity.DataStatus;
import com.yanqu.road.entity.FieldTypeAnnotation;

@FieldTypeAnnotation(tableName = "t_u_activity_daomu_user_collection_data")
public class DaoMuActivityUserCollectionData extends DataObject {

    /**
     * 活动ID
     */
    private int activityId;

    /**
     * 玩家ID
     */
    private Long userId;

    /**
     * 藏品ID
     */
    private int collectionId;

    /**
     * 藏品等级
     */
    private int collectionLevel;

    /**
     * 累计获得的藏品道具数量
     */
    private int collectionPropNum;

    /**
     * 创建时间
     */
    private Long createTime;

    public void setActivityId(int activityId) {
        if (this.activityId != activityId) {
            this.activityId = activityId;
            setOp(DataStatus.Update);
        }
    }

    public int getActivityId() {
        return activityId;
    }

    public void setUserId(Long userId) {
        if (this.userId != userId) {
            this.userId = userId;
            setOp(DataStatus.Update);
        }
    }

    public Long getUserId() {
        return userId;
    }

    public void setCollectionId(int collectionId) {
        if (this.collectionId != collectionId) {
            this.collectionId = collectionId;
            setOp(DataStatus.Update);
        }
    }

    public int getCollectionId() {
        return collectionId;
    }

    public void setCollectionLevel(int collectionLevel) {
        if (this.collectionLevel != collectionLevel) {
            this.collectionLevel = collectionLevel;
            setOp(DataStatus.Update);
        }
    }

    public int getCollectionLevel() {
        return collectionLevel;
    }

    public void setCreateTime(Long createTime) {
        if (this.createTime != createTime) {
            this.createTime = createTime;
            setOp(DataStatus.Update);
        }
    }

    public Long getCreateTime() {
        return createTime;
    }

    public int getCollectionPropNum() {
        return collectionPropNum;
    }

    public void setCollectionPropNum(int collectionPropNum) {
        if (this.collectionPropNum != collectionPropNum) {
            this.collectionPropNum = collectionPropNum;
            setOp(DataStatus.Update);
        }
    }
}
